<?php
class Veterinari extends Modelo_base {

	var $table = 'veterinaris';

	var $has_many = array('prestador');

    // Validaciones de campos
    var $validation = array(
        'razon_social' => array(
            'label' => 'Razón Social',
            'rules' => array('required', 'trim', 'max_length' => 60, 'unique')
            ),
        'direccion' => array(
            'label' => 'Dirección',
            'rules' => array('required', 'trim', 'max_length' => 80)
            ),
        'telefono' => array(
            'label' => 'Teléfono',
            'rules' => array('trim', 'max_length' => 30)
            ),
        'cuit' => array(
            'label' => 'CUIT',
            'rules' => array('trim', 'max_length' => 14)
            ),
        'email' => array(
            'label' => 'Email',
            'rules' => array('trim', 'max_length' => 80, 'valid_email')
            )
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file veterinari.php */
/* Location: ./application/models/veterinari.php */